#include <stdio.h>


void changeArrayValue(int* val);

int main() {
    int arr[5] = {1, 2, 3, 4, 5};
    // print the array
    printf("The array is: ");
    for (int i = 0; i < 5; i++) {
        printf("%d ", arr[i]);
    }
    printf("\n");

    // change the value of the first element of the array
    changeArrayValue(&arr[0]);

    // print the updated array
    printf("The updated array is: ");
    for (int i = 0; i < 5; i++) {
        printf("%d ", arr[i]);
    }
    printf("\n");

    return 0;
}

void changeArrayValue(int* val)
{
    *val = 10;
}